import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("mall_brand",{schema:"nest-mall" } )
@Index("is_show",["isShow",])
export class MallBrand {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("varchar",{ 
        nullable:false,
        name:"name"
        })
    name:string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"list_pic_url"
        })
    listPicUrl:string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"simple_desc"
        })
    simpleDesc:string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"pic_url"
        })
    picUrl:string;
        

    @Column("tinyint",{ 
        nullable:true,
        default: () => "'50'",
        name:"sort_order"
        })
    sortOrder:number | null;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'1'",
        name:"is_show"
        })
    isShow:number;
        

    @Column("decimal",{ 
        nullable:true,
        default: () => "'0.00'",
        scale:2,
        name:"floor_price"
        })
    floorPrice:string | null;
        

    @Column("varchar",{ 
        nullable:false,
        name:"app_list_pic_url"
        })
    appListPicUrl:string;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'0'",
        name:"is_new"
        })
    isNew:number;
        

    @Column("varchar",{ 
        nullable:false,
        name:"new_pic_url"
        })
    newPicUrl:string;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'10'",
        name:"new_sort_order"
        })
    newSortOrder:number;
        
}
